//
//  TomamaUI.h
//  Tomama
//
//  Created by qianfeng on 15/12/16.
//  Copyright (c) 2015年 ZhangLuJie. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface TomamaUI : NSObject

+(UILabel *)createLabel:(CGRect)cg textAligment:(NSInteger)aligment font:(UIFont *)font textColor:(UIColor *)textColor text:(NSString *)text;

+(UIImageView *)createImageView:(CGRect)cg backGroundImageV:(NSString *)imageName;

+(UIButton *)createButton:(NSInteger)UIButtonType Frame:(CGRect)cg targ:(id)targe sel:(SEL)sel titleColor:(UIColor *)titleColor font:(UIFont*)font title:(NSString *)title  image:(NSString *)imageName backGroundImage:(NSString*)backImageName;

//获取字符串长度
+(CGFloat)getStringWeithtWith:(NSString *)str andHeigth:(CGFloat )h andFont:(UIFont *)font;

//获取字符串宽度
+(CGFloat)getStringHeightWith:(NSString *)str andWeith:(CGFloat )w andFont:(UIFont *)font;

+(UIViewController *)getTopVC;

@end
